import request from '@/utils/requestUtil.js'
const BASE_URL = '/article/admin-api/article'

export default {
  // 分页查询文章
  pageSelectArticle(currentPage, pageSize, data) {
    return request({
      url: BASE_URL + `/page/${currentPage}/${pageSize}`,
      method: 'get',
      params: { ...data }
    })
  },

  // 修改文章
  updateArticle(data) {
    return request({
      url: BASE_URL,
      method: 'put',
      data
    })
  }
}
